/* 
* @Author: fangshuqin
* @Date:   2018-05-03 12:47:53
* @Last Modified by:   ZHELIHAO\fangshuqin
* @Last Modified time: 2018-05-10 13:36:02
*/

{
    let EVENT_CLICK = Laya.Event.CLICK;
    
    class Bottom extends ui.Hall.BottomUI {
        constructor () {
            super();
            
            this.init();
        }

        init () {
            this.initEvent();
        }

        initEvent(){
            // 英雄
            this.heroBox.on(EVENT_CLICK,this, ()=>{
                Public.BetAndSet.I.exit();
                
                Laya.loader.load(ASSETS.ROLE, Laya.Handler.create(null, function () {
                    // 角色普通
                    let role = new Scene.Role();
                    Sail.director.runScene(role);
                }));
            })

            // 好友
            this.friendBox.on(EVENT_CLICK,this, ()=>{

            })
        }

    }

    Sail.class(Bottom, "Com.Hall.Bottom");
}